package org.dwell.nutzcow.book.ioc.event1;

import org.nutz.ioc.IocEventTrigger;

/**
 * Created by Jange on 2016/3/30.
 */
public class OnFetchOrderEvent implements IocEventTrigger<Order> {

    @Override
    public void trigger(Order order) {
        System.out.println("fetch event, order is " + order.getId() + ", " + order.getAmount());
        order.setFetchCount(order.getFetchCount() + 1);
    }
}
